package com.zifeng.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zifeng.common.Query;
import com.zifeng.dao.AdministorDao;
import com.zifeng.pojo.Administor;
import com.zifeng.service.IAdministorService;
import com.zifeng.utils.PageUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

;


/**
 * 船舶管理员Service业务层处理
 *
 * @author zifeng
 * @date 2025-03-27
 */
@Service("administorService")
public class AdministorServiceImpl extends ServiceImpl<AdministorDao, Administor> implements IAdministorService {

    @Autowired
    private AdministorDao administorDao;

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<Administor> page = this.page(
                new Query<Administor>().getPage(params),
                new QueryWrapper<Administor>()
        );

        return new PageUtils(page);
    }

}